﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Economo.UI.Views
{
    public delegate void EntityUpdateEventHandler(int rowIndex);
    public delegate void EntityDeleteEventHandler(object id);
    public delegate void EntityInsertEventHandler();

    public interface IManageEntitiesView
    {
            
        object GetEntityIdFromGridRow(int rowIndex);
        
        event EntityUpdateEventHandler EntityUpdate;
        event EntityDeleteEventHandler EntityDelete;
        event EntityInsertEventHandler EntityInsert;


        object EntitiesList { get; set; }
        
        T GetCellValueFromGridRow<T>(int rowIndex, string columnName);
        string GetStringColumnFromGridRow(int rowIndex, string columnName);
       
    }
}
